# coding: utf-8
from sqlalchemy import Column, DateTime, Integer, Text
from sqlalchemy.schema import FetchedValue
from application import db



class CollectionDetail(db.Model):
    __tablename__ = 'collection_detail'

    id = db.Column(db.Integer, primary_key=True)
    collection_id = db.Column(db.Integer, nullable=False, info='??ID')
    detail = db.Column(db.Text, nullable=False, info='????,????????')
    update_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='????')
    created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='????')
